package com.yong.ssj.db.dao.order;

import java.util.List;
import java.util.Map;

import com.yong.ssj.db.dto.cost.CostMethodDto;
import com.yong.ssj.db.dto.order.OrderDto;
import com.yong.ssj.db.dto.order.OrderOperateDto;
import com.yong.ssj.db.dto.order.ReturnApplyDto;
import com.yong.ssj.vo.order.OrderOperateVo;
/**
 * zhegebuxing
 * @author caidongyong
 *
 */
public interface IOrderDao {
	public List<Map<String, Object>> queryOrder(String order_status);//查询借款订单
	public List<Map<String, Object>> queryReturn(String return_status);//查询还款订单
	public OrderOperateDto queryOrderOperate(long order_id);//查询相应的订单详情
	public int updateOrderStatus(String order_status,long order_id,double money);//修改订单状态
	public int updateOrderStatusf(String order_status,long order_id,String method);//放款修改订单状态
	public int updateOrderBorrow(OrderOperateVo vo);//新增放款/收款操作（上传凭证）
	public int updateReturnStatus(String return_status,OrderOperateVo vo);//修改还款订单预约状态
	public List<Map<String, Object>> queryBorrow(String customer_name);//手机号查询
	public List<Map<String, Object>> queryReturnph(String customer_name);//手机号查询
	public List<Map<String, Object>> queryBo(long order_id);//凭证查看
	public List<Map<String, Object>> queryRe(long order_id);//还款凭证查看
	public int updateHuanmoney(double rz_surplus_money,long customer_id);//还款后增加额度
	public List<Map<String, Object>> queryFangmoney(long customer_id);//查询额度和金额
	public List<Map<String, Object>> queryCost();//查询利息方案1
	public int insertBorrow(double apply_money,long cost_id,long customer_id);//借款
	public List<Map<String, Object>> queryborrowList(long customer_id);//查询借款未完成
	public List<Map<String, Object>> queryborrowedList(long customer_id);//查询借款已经完成
	public List<Map<String, Object>> queryhuanList(long customer_id);//查询还款记录
	public List<Map<String, Object>> querytiqianList(long order);//提前还款记录
	public int querytiqianedList(long order,double money);//提前还款
	public List<Map<String, Object>> queryShould();//查询所有的还未还款的放款订单
	public int insertReturn(long order_id,double return_money,String return_status,String return_kinds);//添加还款订单
	public List<Map<String, Object>> queryhuan(long return_apply_id);//根据id查询相应的还款订单
}
